package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.AfterStatusEnum;
import com.lh.common.enums.AfterTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
/**
 * ovmal_order_after_sale:退货申请
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_order_after_sale")
@Alias("orderAfterSaleAdmin")
@Data
public class OrderAfterSaleAdmin implements Serializable {
    @ApiModelProperty(value = "")
    @Id
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "支付单号")
    @Column(name = "pay_payments_id")
    private String payPaymentsId;

    @ApiModelProperty(value = "订单号")
    @Column(name = "order_item")
    private String orderItem;

    @ApiModelProperty(value = "服务单号")
    @Column(name = "after_sale_id")
    private String afterSaleId;

    @ApiModelProperty(value = "退款原因")
    @Column(name = "reason")
    private String reason;

    @ApiModelProperty(value = "联系人")
    @Column(name = "receive_recipients")
    private String receiveRecipients;

    @ApiModelProperty(value = "联系人手机号")
    private String receivePhone;

    @ApiModelProperty(value = "服务类型 REFUND:退款;RETURN:退货")
    @Column(name = "type")
    private AfterTypeEnum type;

    @ApiModelProperty(value = "退款金额")
    @Column(name = "refund_price")
    private BigDecimal refundPrice;

    @ApiModelProperty(value = "售后订单状态：PROCESSING->退款处理中；REFUNDSUCCESS:退款成功；RETURNING:退货处理中；TOWAREHOUSE:退货入库中: REFUNDING:退货退款中,RETURNSUCCESS:退货退款成功,REFUSERETURN:拒绝退货退款失败,REFUSEWAREHOUSE:拒绝入库退款失败,REFUSEREFUND:拒绝退款退款失败，RETURNTIMEOUT：退货超时")
    @Column(name = "status")
    private AfterStatusEnum status;

    /**
     * ovmal_order_after_sale
     */
    private static final long serialVersionUID = 1L;
}
